
function setState<T>(state:T){
    let currentState =state
    const changeState=(newState:T)=>{
        currentState=newState
    }

    const tup:[T,(newState:T)=>void]=[currentState, changeState]

    return tup

}

const [val,setVal]=setState(123)

const [str,setStr]=setState("123")


export {}